package cn.zhf.shop.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.zhf.shop.mapper.ChinapayMapper;
import cn.zhf.shop.entity.Chinapay;
import cn.zhf.shop.service.ChinapayService;

@Service
public class ChinapayServiceImpl implements ChinapayService {

    @Resource
    private ChinapayMapper chinapayMapper;

    @Override
    public int deleteByPrimaryKey(String orderId) {
        return chinapayMapper.deleteByPrimaryKey(orderId);
    }

    @Override
    public int insert(Chinapay record) {
        return chinapayMapper.insert(record);
    }

    @Override
    public int insertSelective(Chinapay record) {
        return chinapayMapper.insertSelective(record);
    }

    @Override
    public Chinapay selectByPrimaryKey(String orderId) {
        return chinapayMapper.selectByPrimaryKey(orderId);
    }

    @Override
    public int updateByPrimaryKeySelective(Chinapay record) {
        return chinapayMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Chinapay record) {
        return chinapayMapper.updateByPrimaryKey(record);
    }

}

